from django.urls import path, re_path
from demo_work import views

urlpatterns = [

	# http://127.0.0.1:8000/querystring/?name=query&age=99&email=query@126.com/
	path('querystring/', views.QueryStringView.as_view()),

	# http://127.0.0.1:8000/formbody/
	path('formbody/', views.FormBodyView.as_view()),

	# http://127.0.0.1:8000/jsonbody/
	path('jsonbody/', views.JsonBodyView.as_view()),

	# http://127.0.0.1:8000/urlpath/url/22/url.@126.com/
	path('urlpath/<mobileone:name>/<mobiletwo:age>/<mobilethere:email>/', views.UrlPathView.as_view()),

	# http://127.0.0.1:8000/jsonreponse/
	path('jsonreponse/', views.JsonResponseView.as_view()),

	# http://127.0.0.1:8000/login/
	path('login/', views.LoginrequestView.as_view()),

	# http://127.0.0.1:8000/image/C:/Users/Flydream/Desktop/image.jpg
	path('images/', views.ImageResponseView.as_view(), name='image'),
]
